package com.zhang.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

@Api(tags = "出库订单购物车实体类")
@Data
@NoArgsConstructor
@TableName("t_outputcar")
public class OutputCarBean {


    @ApiModelProperty("出库购物车id")
    @TableId(value = "pk_outputCarId",type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("商品编号")
    @TableField(value = "oc_number")
    private String number;

    @ApiModelProperty("商品名")
    @TableField(value = "oc_name")
    private String name;

    @ApiModelProperty("厂家")
    @TableField(value = "oc_mill")
    private String mill;

    @ApiModelProperty("现有库存")
    @TableField(value = "oc_num")
    private Integer num;

    @ApiModelProperty("建议销售价")
    @TableField(value = "oc_sale")
    private Integer sale;

    @ApiModelProperty("出库数量")
    @TableField(value = "oc_count")
    private Integer count = 1;

    @ApiModelProperty("所属类别id")
    @TableField(value = "fk_typeId")
    private Integer typeId;

    @ApiModelProperty("销售员")
    @TableField(value = "fk_userId")
    private Integer userId;

    @ApiModelProperty("所属类别id")
    @TableField(value = "fk_customId")
    private Integer customId;

    public OutputCarBean(String number, String name, String mill, Integer num, Integer sale, Integer typeId, Integer userId, Integer customId) {
        this.number = number;
        this.name = name;
        this.mill = mill;
        this.num = num;
        this.sale = sale;

        this.typeId = typeId;
        this.userId = userId;
        this.customId = customId;
    }

    @Override
    public String toString() {
        return "OutputCarBean{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", mill='" + mill + '\'' +
                ", num=" + num +
                ", sale=" + sale +
                ", count=" + count +
                ", typeId=" + typeId +
                ", userId=" + userId +
                ", customId=" + customId +
                '}' + "\n";
    }
}
